package pwr.online.cow.model;

public class Position1D extends Position {
	private int x;
	
	public Position1D(int x) {
		this.x = x;
	}
	
	public void setX(int x) {
		this.x = x;
	}
	
	public int getX() {
		return x;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Position1D) {
			Position1D p = (Position1D) obj;
			return p.x == x;
		}
		return super.equals(obj);
	}
}
